﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PSE.Framework.Communication.Configuration;

namespace PSE.Framework.Communication.Adapters.File
{
    public class FileReceiveParameter
    {
        public FileReceiveParameter()
        {
        }

        public FileReceiveParameter(string fileNameFilter)
            : this()
        {
            _fileNameFilter = fileNameFilter;
        }

        public FileReceiveParameter(string fileNameFilter, string inputPath)
            : this(fileNameFilter)
        {
            _inputPath = inputPath;
        }

        private string _fileNameFilter = null;
        /// <summary>
        /// Filtro do nome dos arquivos a serem importados
        /// </summary>
        public string FileNameFilter
        {
            get { return _fileNameFilter; }
            set { _fileNameFilter = value; }
        }

        private string _inputPath = null;
        public string InputPath
        {
            get { return _inputPath; }
            set { _inputPath = value; }
        }

        private string _importingPath = null;
        public string ImportingPath
        {
            get { return _importingPath; }
            set { _importingPath = value; }
        }

        private string _outputPath = null;
        public string OutputPath
        {
            get { return _outputPath; }
            set { _outputPath = value; }
        }

        private string _errorPath = null;
        public string ErrorPath
        {
            get { return _errorPath; }
            set { _errorPath = value; }
        }

        private string _cancelPath = null;
        public string CancelPath
        {
            get { return _cancelPath; }
            set { _cancelPath = value; }
        }

        private int? _ignoreFirstRows = null;
        public int? IgnoreFirstRows
        {
            get { return _ignoreFirstRows; }
            set { _ignoreFirstRows = value; }
        }

        private int? _ignoreLastRows = null;
        public int? IgnoreLastRows
        {
            get { return _ignoreLastRows; }
            set { _ignoreLastRows = value; }
        }
    }
}
